<table class="table" contenteditable="false">
  <thead>
    <tr>
      <th>编号</th>
      <th>计划名称</th>
      <th>所属项目</th>
      <th>项目信息</th>
      <th>创建人</th>
      <th>变更时间</th>
    </tr>
  </thead>
{% for plan in plan_lists %}
  <tbody>
      <tr style="height: 70px;font-weight: 600;font-size: 15px">
      <td valign="baseline">{{ loop.index }}</td>
      <td>
          <div class="post-body">
            {{ plan.plan_name }}&{{ plan.id }}
          </div>
      </td>
      <td>
          <div class="post-body">
          {% if plan.subject_id==1 %}
            ITS
          {% endif %}
          </div>
      </td>
      <td class="post-body"><div >{{ plan.plan_info }}</div></td>
      <td><div class="post-body">{{ plan.creat_user.username }}</div></td>
      <td width="180"><div class="post-body" >{{ plan.timestamp }}</div></td>
          <td width="60" style="padding-right: 0px;padding-left: 20px;">
          <a href="{{ url_for('plan.plan_run', plan_id=plan.id,subject_id=plan.subject_id)}}">
              <button type="button" class="btn btn-success" style="margin-right: 10px;margin-left: 30px;">
                  运行
              </button>
          </a>
      </td>
      <td width="60" style="padding-right: 0px;padding-left: 2px;">
          <a href="{{ url_for('plan.plan_testreport', plan_id=plan.id)}}">
              <button type="button" class="btn btn-primary" style="margin-right: 10px">
                  测试报告
              </button>
          </a>
      </td>
      <td width="60" style="padding-right: 0px;padding-left: 2px;">
          <a href="{{ url_for('plan.plan_edit',plan_id=plan.id,plan_name=plan.plan_name,plan_info=plan.plan_info)}}">
              <button type="button" class="btn btn-info" style="margin-right: 10px">
                  编辑
              </button>
          </a>
      </td>
      <td width="60" style="padding-right: 0px;padding-left: 2px;">
          <a href="{{ url_for('plan.plan_delete', plan_id=plan.id)}}">
              <button type="button" class="btn btn-danger" style="margin-right: 10px">
                  删除
              </button>
          </a>
      </td>
    </tr>
  </tbody>
{% endfor %}
</table>
